import pytest


def pytest_addoption(parser):
    parser.add_option(
        "--change",
        action="store",
        default="off",
        help="Default 'off' for change, option: on or off"
    )


def pytest_report_teststatus(report, config):
    """ turn y into yes, turn n into no, turn x into 0 """
    if report.when == 'call' and report.failed:
        return (report.outcome, 'x', 'failed')
    if report.when == 'call' and report.passed:
        return (report.outcome, '√', 'passed')
